<?php
/**
 * Author: Administrator
 * Date: 2022/7/17 0:34
 */

namespace DesignPatterns\Structural\Registry;

class Registry
{
    const LOGGER = 'logger';

    protected static $storedValues = array();

    public static function set($name, $value): void
    {
        self::$storedValues[$name] = $value;
    }

    public static function get($name) {
        return self::$storedValues[$name];
    }

}